import request from '@/utils/request'

export function list(page, limit, searchObj) {
  return request({
    url: `/admin/core/userInfo/list/${page}/${limit}`,
    method: 'get',
    params: searchObj
  })
}

export function lock(id, status) {
  return request({
    url: `/admin/core/userInfo/lock/${id}/${status}`,
    method: 'put'
  })
}

export function getuserLoginRecordTop50(userId) {
  return request({
    url: `/admin/core/userLoginRecord/listTop50/${userId}`,
    method: 'get'
  })
}
